package com.ynu.wanli.Business.order.OrderConventer;
import com.ynu.wanli.Business.order.VO.OrderVO;
import com.ynu.wanli.Business.order.dto.Order;

/**
 * 模块名称：
 * 模块类型：
 * 编码人：刘彬
 * 生成时间：2023/3/8
 * 联系电话：
 * */
public class OrderConventer {
    public Order orderVOToOrder(OrderVO orderVO){
        Order order=new Order();
        order.setOrderId(orderVO.getOrderId());
        order.setOrderCard(orderVO.getOrderCard());
        order.setOrderDriver(orderVO.getOrderDriver());
        order.setOrderOrdinary(order.getOrderOrdinary());
        order.setOrderNoSite(orderVO.getOrderNoSite());
        order.setOrderEndTime(orderVO.getOrderEndTime());
        order.setOrderStartTime(orderVO.getOrderStartTime());
        order.setOrderViPSite(orderVO.getOrderViPSite());
        return order;
    }
    public OrderVO orderToOrderVO(Order order){
        OrderVO orderVO=new OrderVO();
        orderVO.setOrderCard(order.getOrderCard());
        orderVO.setOrderDriver(order.getOrderDriver());
        orderVO.setOrderId(order.getOrderId());
        orderVO.setOrderOrdinary(orderVO.getOrderOrdinary());
        orderVO.setOrderNoSite(orderVO.getOrderNoSite());
        orderVO.setOrderEndTime(order.getOrderEndTime());
        orderVO.setOrderViPSite(order.getOrderViPSite());
        orderVO.setOrderStartTime(order.getOrderStartTime());
        return orderVO;
    }

}
